
<%@ include file="/html/revver/init.jsp" %>

<c:choose>
	<c:when test="<%= Validator.isNotNull(url) %>">

		<%
		StringBundler sb = new StringBundler();

		if (autoplay) {
			sb.append("autoplay=1&amp;");
		}

		sb.append("&amp;color=" + playerColorHex);
		sb.append("&amp;fullscreen=" + enableFullscreenBinary);
		sb.append("&amp;server=flash.revver.com");
		sb.append("&amp;show_byline=" + showBylineBinary);
		sb.append("&amp;show_portrait=" + showPortraitBinary);
		sb.append("&amp;show_title=" + showTitleBinary);
		%>

		<liferay-ui:flash
			allowFullScreen="<%= (enableFullscreen)?"true":"false" %>"
			allowScriptAccess="true"
			height="<%= height %>"
			movie="<%= _SWF_URL + id %>"
			play="true"
			width="<%= width %>"
			wmode="opaque"
		/>
	</c:when>
	<c:otherwise>
		<liferay-util:include page="/html/portal/portlet_not_setup.jsp" />
	</c:otherwise>
</c:choose>